# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import datetime
import clients.models
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('clients', '0006_auto_20141222_1114'),
    ]

    operations = [
        migrations.CreateModel(
            name='Bonus',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('amount', models.DecimalField(verbose_name='\u0421\u0443\u043c\u043c\u0430', max_digits=19, decimal_places=2)),
                ('date', models.DateTimeField(default=datetime.datetime.now, verbose_name='\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f')),
                ('agreement', models.ForeignKey(related_name='bonuses', verbose_name='\u0414\u043e\u0433\u043e\u0432\u043e\u0440', blank=True, to='clients.Agreement', null=True)),
                ('author', models.ForeignKey(verbose_name='\u0410\u0432\u0442\u043e\u0440', to=settings.AUTH_USER_MODEL, null=True)),
                ('client', models.ForeignKey(related_name='bonuses', verbose_name='\u041a\u043b\u0438\u0435\u043d\u0442', to='clients.Client', null=True)),
            ],
            options={
                'verbose_name': '\u0411\u043e\u043d\u0443\u0441',
                'verbose_name_plural': '\u0411\u043e\u043d\u0443\u0441\u044b',
            },
            bases=(models.Model, clients.models.InlineAwareModel),
        ),
        migrations.AlterField(
            model_name='client',
            name='address',
            field=models.TextField(null=True, verbose_name='\u0410\u0434\u0440\u0435\u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430', blank=True),
            preserve_default=True,
        ),
    ]
